<template>
  <div class="nav-container">
    <ul>
      <router-link tag='li' to='/allmovement' exact>
        <i class="el-icon-view"></i>
        首页
      </router-link>
      <router-link tag='li' to='/sports'>
        <i class="el-icon-bell"></i>
        健身
      </router-link>
      <router-link tag='li' to='/find'>
        <i class="el-icon-picture-outline"></i>
        发现
      </router-link>
      <router-link tag='li' to='/mine'>
        <i class="el-icon-date"></i>
        我的
      </router-link>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Nav',
  data () {
    return {

    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scoped>
.nav-container{
  width: 100%;
  height: 1rem;
  position: fixed;
  left: 0;
  bottom: 0;
  background: #000;
  ul{
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    color: rgb(255,255,255,.5);
    li{
      flex-grow: 1;
      font-size: 15/50rem;
      box-sizing: border-box;
      padding: 0.08rem 0;
      i{
        display: block;
        font-size: 0.4rem;
      }
    }
  }
}
</style>
